using UnityEngine;

public class Obstacle : MonoBehaviour
{
    public bool selfMove = true;
    public float consumeWaterAmount;
    
    // Start is called once before the first execution of Update after the MonoBehaviour is created
    void Start()
    {
        
    }

    void OnTriggerEnter2D(Collider2D other)
    {
        if(other.gameObject.layer==LayerMask.NameToLayer("Bubble"))
        {
            print("掉水");
            Bubble.I.ConsumeWater(consumeWaterAmount);
        }
    }
    public void Update()
    {
        ;
    }
}
